/**
 * 
 */
package com.omega.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * @author vpan14
 * 
 */
@Entity
@Table(name = "RMS_SUPPLIER")
public class Supplier extends AbstractEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2187090408756348981L;

	@Id
	@Column(name = "SUPP_ID")
	@TableGenerator(table = "PORTAL_TABLE_GENERATOR", name = "TABLE_SEQ_GENERATOR", pkColumnValue = "SUPP_ID",allocationSize = 1, initialValue = 1)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "TABLE_SEQ_GENERATOR")
	private long supplierId;

	@Column(name = "TIN_NUM", nullable = true, length = 10)
	private String tinNumber;

	@Column(name = "SUPP_NAME", nullable = false, length = 100)
	private String supplierName;

	@Column(name = "SUPP_ADDRESS", nullable = true, length = 100)
	private String supplierAddress;

	@Column(name = "SUPP_EMAIL_ID", nullable = true, length = 100)
	private String supplierEmailId;

	@Column(name = "SUPP_PHONE_NUM", nullable = true, length = 20)
	private String supplierPhoneNumber;

	@Column(name = "SUPP_MOBILE_NUM", nullable = true, length = 15)
	private String supplierMobileNumber;

	@Column(name = "SUPP_ACTIVE_FLAG", nullable = false, length = 1)
	private String supplierActive;

	@Column(name = "MONTH", nullable = false, length = 2)
	private int month;

	@Column(name = "YEAR", nullable = false, length = 4)
	private int year;

	/**
	 * @return the supplierId
	 */
	public long getSupplierId() {
		return supplierId;
	}

	/**
	 * @param supplierId the supplierId to set
	 */
	public void setSupplierId(long supplierId) {
		this.supplierId = supplierId;
	}

	/**
	 * @return the tinNumber
	 */
	public String getTinNumber() {
		return tinNumber;
	}

	/**
	 * @param tinNumber the tinNumber to set
	 */
	public void setTinNumber(String tinNumber) {
		this.tinNumber = tinNumber;
	}

	/**
	 * @return the supplierName
	 */
	public String getSupplierName() {
		return supplierName;
	}

	/**
	 * @param supplierName the supplierName to set
	 */
	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	/**
	 * @return the supplierAddress
	 */
	public String getSupplierAddress() {
		return supplierAddress;
	}

	/**
	 * @param supplierAddress the supplierAddress to set
	 */
	public void setSupplierAddress(String supplierAddress) {
		this.supplierAddress = supplierAddress;
	}

	/**
	 * @return the supplierEmailId
	 */
	public String getSupplierEmailId() {
		return supplierEmailId;
	}

	/**
	 * @param supplierEmailId the supplierEmailId to set
	 */
	public void setSupplierEmailId(String supplierEmailId) {
		this.supplierEmailId = supplierEmailId;
	}

	/**
	 * @return the supplierPhoneNumber
	 */
	public String getSupplierPhoneNumber() {
		return supplierPhoneNumber;
	}

	/**
	 * @param supplierPhoneNumber the supplierPhoneNumber to set
	 */
	public void setSupplierPhoneNumber(String supplierPhoneNumber) {
		this.supplierPhoneNumber = supplierPhoneNumber;
	}

	/**
	 * @return the supplierMobileNumber
	 */
	public String getSupplierMobileNumber() {
		return supplierMobileNumber;
	}

	/**
	 * @param supplierMobileNumber the supplierMobileNumber to set
	 */
	public void setSupplierMobileNumber(String supplierMobileNumber) {
		this.supplierMobileNumber = supplierMobileNumber;
	}

	/**
	 * @return the supplierActive
	 */
	public String getSupplierActive() {
		return supplierActive;
	}

	/**
	 * @param supplierActive the supplierActive to set
	 */
	public void setSupplierActive(String supplierActive) {
		this.supplierActive = supplierActive;
	}

	/**
	 * @return the month
	 */
	public int getMonth() {
		return month;
	}

	/**
	 * @param month the month to set
	 */
	public void setMonth(int month) {
		this.month = month;
	}

	/**
	 * @return the year
	 */
	public int getYear() {
		return year;
	}

	/**
	 * @param year the year to set
	 */
	public void setYear(int year) {
		this.year = year;
	}

}
